package com.cskaoyan.javase.oop3._2inner._3local._5multiple;

import com.sun.org.apache.bcel.internal.generic.NEW;

/**
 * 使用(成员)内部类实现多继承
 * @since 10:41
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo {
    public static void main(String[] args) {
        new A().test();
        A a = new A();
        a.method();
    }
}

class A extends B {
    void method() {
        new CSon().test();
        new DSon().test();
    }

    class CSon extends C {
    }

    class DSon extends D {
    }
}

class B {
    void test() {
        System.out.println("B");
    }
}

class C {
    void test() {
        System.out.println("C");
    }

}

class D {
    void test() {
        System.out.println("D");
    }
}
